﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace QLK.Web
{
    public partial class EmployeeDetails : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Load_Data();
        }
    }

        private void Load_Data()
        {
            //DataTable dt = Library.Create_Table(new string[]{Library.Columns.Employees.EmployeeID,
            //"FullName",Library.Columns.Employees.Gender,Library.Columns.Employees.IDCard,
            //Library.Columns.Employees.PhoneNumber});
            //DataRow r;

            //var Emps = EmpBLL.Emp_GetAll();
            //foreach (var i in Emps)
            //{
            //    r = dt.NewRow();
            //    r[0] = i.EmployeeID;
            //    r[1] = i.LastName + " " + i.FirstName;
            //    r[2] = i.Gender;
            //    r[3] = i.IDCard;
            //    r[4] = i.PhoneNumber;
            //    dt.Rows.Add(r);
            //}

            //grvEmployees.DataSource = dt;
            //grvEmployees.DataBind();

            //grvEmployees.DataSource = dt;
            //grvEmployees.DataBind();
        }
    

        protected void btnAddEmp_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Employees.aspx");
        }
    }
}
